#!/bin/sh

DATASIZE="786432"

if [ $(ulimit -Sd) -lt ${DATASIZE} ]; then
	ulimit -Sd ${DATASIZE} || \
		xm_log "Cannot increase datasize-cur to at least ${DATASIZE}"
		[ $? -eq 0 ] || exit
fi

exec `${TRUEPREFIX}/bin/javaPathHelper -c freecol` -Xmx512M -cp "${TRUEPREFIX}/share/freecol/FreeCol.jar" net.sf.freecol.FreeCol --freecol-data "${TRUEPREFIX}/share/freecol/data" ${1+"$@"}
